#!/bin/sh

cd ~/workshop/gitee/YY/

find  50* 70* 71* |grep `date |awk '{print $1$2}'` |xargs cat >`date -I`.md



echo "% 宇墨小课堂" > tmp.md
echo "% 第三同读" >> tmp.md
echo "% "`date | awk '{print $1 " " $2 " " $3}'`  >> tmp.md
echo "" >> tmp.md

echo "[成语](./y/) [英语](./e/) [几何原本](./m/)  [计算机](./i/)" >>tmp.md

echo "" >>tmp.md

sed -e "/^%.*/d" `date -I`.md >>tmp.md

pandoc -s  tmp.md -o ~/workshop/hbaolong.github.io/yumo/index.html

rm -f tmp.md
rm -f `date -I`.md

